#include <iostream>
#include <cmath>
using namespace std;
int main()

{
  double A, Res;
  cout << "A -> ";
  cin >> A;
  Res = A * A;
  cout << "A^2 -> " << Res;
  Res = (A*A) * (A*A);
  cout << "A^4 -> " << Res;
  Res = Res * (A*A) * (A*A);
  cout << "A^8 -> " << Res;
  return 0;
}
